package com.gxa.insurance.service.impl;

import com.gxa.insurance.mapper.SensitiveMapper;
import com.gxa.insurance.pojo.DriverCommentsSensitive;
import com.gxa.insurance.service.SensitiveService;
import com.gxa.insurance.util.JsonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author shen gang
 * @date 2022/6/15
 */
@Service("SensitiveService")
@Transactional(rollbackFor = Throwable.class)
public class SensitiveServiceImpl implements SensitiveService {
    @Autowired
    SensitiveMapper sensitiveMapper;

    @Override
    public List<DriverCommentsSensitive> selectAll() {
        List<DriverCommentsSensitive> driverCommentsSensitives = sensitiveMapper.selectAll();



        return driverCommentsSensitives;
    }

    @Override
    public void addSenstive(DriverCommentsSensitive driverCommentsSensitive) {
        sensitiveMapper.addSensitive(driverCommentsSensitive);

    }
}
